package whf.shop.entity;

import java.sql.Blob;
import java.sql.Date;
import java.sql.Timestamp;

import whf.framework.security.entity.User;

public class Member extends whf.framework.entity.AbstractEntity{

	private static final long serialVersionUID = 0;

	private String login;

	private String password;

	private String address;

	private String email;

	private String tel;

	private String mobile;

	private String sex;

	private String newsLetter;

	private Timestamp lastLogin;

	private Date birthday;

	private boolean confirmed;

	private String webSite;

	private String hearFrom;

	private Blob photo;

	private String zip;

	/**
	 * 对于会员绑定一个固定的用户
	 * 
	 * @property User:user
	 */
	private User user;

	private float discount;

	private int cents;

	private whf.shop.entity.Shop shop;

	private Currency currency;

	// ---------- methods ----------

	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return this.user;
	}

	public void setDiscount(float discount) {
		this.discount = discount;
	}

	public float getDiscount() {
		return this.discount;
	}

	public void setCents(int cents) {
		this.cents = cents;
	}

	public int getCents() {
		return this.cents;
	}

	public void setShop(whf.shop.entity.Shop shop) {
		this.shop = shop;
	}

	public whf.shop.entity.Shop getShop() {
		return this.shop;
	}

	/**
	 * @return Returns the currency.
	 */
	public Currency getCurrency() {
		return currency;
	}

	/**
	 * @param currency
	 *            The currency to set.
	 */
	public void setCurrency(Currency currency) {
		this.currency = currency;
	}

	/**
	 * @return Returns the address.
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            The address to set.
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return Returns the birthday.
	 */
	public Date getBirthday() {
		return birthday;
	}

	/**
	 * @param birthday
	 *            The birthday to set.
	 */
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	/**
	 * @return Returns the confirmed.
	 */
	public boolean isConfirmed() {
		return confirmed;
	}

	/**
	 * @param confirmed
	 *            The confirmed to set.
	 */
	public void setConfirmed(boolean confirmed) {
		this.confirmed = confirmed;
	}

	/**
	 * @return Returns the email.
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            The email to set.
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return Returns the hearFrom.
	 */
	public String getHearFrom() {
		return hearFrom;
	}

	/**
	 * @param hearFrom
	 *            The hearFrom to set.
	 */
	public void setHearFrom(String hearFrom) {
		this.hearFrom = hearFrom;
	}

	/**
	 * @return Returns the lastLogin.
	 */
	public Timestamp getLastLogin() {
		return lastLogin;
	}

	/**
	 * @param lastLogin
	 *            The lastLogin to set.
	 */
	public void setLastLogin(Timestamp lastLogin) {
		this.lastLogin = lastLogin;
	}

	/**
	 * @return Returns the login.
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * @param login
	 *            The login to set.
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return Returns the mobile.
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * @param mobile
	 *            The mobile to set.
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * @return Returns the newsLetter.
	 */
	public String getNewsLetter() {
		return newsLetter;
	}

	/**
	 * @param newsLetter
	 *            The newsLetter to set.
	 */
	public void setNewsLetter(String newsLetter) {
		this.newsLetter = newsLetter;
	}

	/**
	 * @return Returns the password.
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            The password to set.
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return Returns the photo.
	 */
	public Blob getPhoto() {
		return photo;
	}

	/**
	 * @param photo
	 *            The photo to set.
	 */
	public void setPhoto(Blob photo) {
		this.photo = photo;
	}

	/**
	 * @return Returns the sex.
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            The sex to set.
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return Returns the tel.
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel
	 *            The tel to set.
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	/**
	 * @return Returns the webSite.
	 */
	public String getWebSite() {
		return webSite;
	}

	/**
	 * @param webSite
	 *            The webSite to set.
	 */
	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}

	/**
	 * @return Returns the zip.
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * @param zip
	 *            The zip to set.
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

}